<ui:composition 
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
    
        <ui:repeat value="#{aplicationBean.rubros}" var="r">
            
            <ul class="menuRubros" >                
                <li>                                        
                    <h:outputLink value="#{application.contextPath}/buscar/#{r.id}/" >    
                                                                        
                        #{r.descripcion}
                        
                    </h:outputLink>                    
                </li>   
            </ul>            
            
            <ui:repeat value="#{r.rubros}" var="r1">
                
                <ul class="menuSubRubros">
                    <li>
                        <h:outputLink value="#{application.contextPath}/buscar/#{r.id}/#{r1.id}/" >    
                                                                        
                            #{r1.descripcion}
                        
                        </h:outputLink>                        
                    </li>
                </ul>
                
            </ui:repeat>         
            
        </ui:repeat>  
        
    
 
</ui:composition>
